import React from 'react';

type CrumbClickHandler = (event: React.MouseEvent, param: { key: string; label: string }) => void;

export interface IFilePathBreadCrumbItem {
  key: string;
  label: string;
  disabled?: boolean;
}

export interface IFilePathBreadCrumbProps {
  separator?: React.ReactNode;
  style?: React.CSSProperties;
  className?: string;
  items: IFilePathBreadCrumbItem[];
  onClick?: CrumbClickHandler;
}

export interface IFilePathBreadCrumbItemProps {
  item: IFilePathBreadCrumbItem;
  onItemClick?: CrumbClickHandler;
}
